package com.gin.pixiv.response.series

import com.fasterxml.jackson.annotation.JsonAlias
import com.gin.pixiv.response.base.BaseWorkBody
import java.time.ZonedDateTime

/**
 * 小说系列基础信息
 * @author BX-Gin
 * @from 2024/2/24 16:13
 */
class SeriesContent : BaseWorkBody() {
    /**
     * 收藏数
     */
    var bookmarkCount: Int? = null

    /**
     * 阅读时长
     */
    var readingTime: Int? = null

    /**
     * 字数
     * */
    var wordCount: Int? = null

    /**
     * 标签
     */
    var tags: List<String>? = null

    /**
     * 字节长度
     */
    var textLength: Int? = null

    /**
     * 再上传时间
     */
    @set:JsonAlias("reuploadTimestamp")
    var reUploadTimestamp: ZonedDateTime? = null

    /**
     * 上传时间
     */
    var uploadTimestamp: ZonedDateTime? = null

    /**
     * 系列信息
     */

    var series: Series? = null

    /**
     * 封面链接
     */
    @set:JsonAlias("url")
    var coverUrl: String? = null

    companion object {
        class Series {
            var contentOrder: Int? = null
            var id: Long? = null
            var viewableType: Int? = null
        }
    }
}